import { ADMIN_LOGIN_URL } from '../config';
import request from '../utils/request';

export const postAdminLoginApi = (params) => request.post(`${ADMIN_LOGIN_URL}/admin/login`, params)
export const getAdminListApi = () => request.get(`${ADMIN_LOGIN_URL}/admin/list`)
export const postAdminDeleteApi = (params) => request.post(`${ADMIN_LOGIN_URL}/admin/delete`, params)
export const getAdminDetailApi = (adminname) => request.get(`${ADMIN_LOGIN_URL}/admin/detail`, { params: { adminname } })
export const postAdminAddApi = (params) => request.post(`${ADMIN_LOGIN_URL}/admin/add`, params)
export const postAdminUpdateApi = (params) => request.post(`${ADMIN_LOGIN_URL}/admin/update`, params)
